<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: lex.hpp File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#typedef-members">Typedefs</a> &#124;
<a href="#var-members">Variables</a>  </div>
  <div class="headertitle">
<div class="title">lex.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Tools for parsing C-like input. </p>
<p>Functions in this file use objects of opaque type lexer_t. To create a lexer_t instance, use <a class="el" href="lex_8hpp.html#a88745b2b81432a7ff622f0c19f3d114b" title="Create new lexical analyzer and set its keyword table. ">create_lexer()</a>. </p>
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structtoken__t.html">token_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parser token.  <a href="structtoken__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structcast__t.html">cast_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preprocessor cast.  <a href="structcast__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structlex__value__t.html">lex_value_t</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a88745b2b81432a7ff622f0c19f3d114b"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> lexer_t *<a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a88745b2b81432a7ff622f0c19f3d114b">create_lexer</a> (const char *const *keys, size_t size, void *ud=NULL)</td></tr>
<tr class="memdesc:a88745b2b81432a7ff622f0c19f3d114b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create new lexical analyzer and set its keyword table.  <a href="#a88745b2b81432a7ff622f0c19f3d114b">More...</a><br /></td></tr>
<tr class="separator:a88745b2b81432a7ff622f0c19f3d114b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a78ed5c5c8a801238c5900f886f45ab4f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a78ed5c5c8a801238c5900f886f45ab4f"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a78ed5c5c8a801238c5900f886f45ab4f">destroy_lexer</a> (lexer_t *lx)</td></tr>
<tr class="memdesc:a78ed5c5c8a801238c5900f886f45ab4f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Destroy a lexical analyzer. <br /></td></tr>
<tr class="separator:a78ed5c5c8a801238c5900f886f45ab4f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8758bd4082f74442a7544e1a8a4b9e8d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a8758bd4082f74442a7544e1a8a4b9e8d"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a8758bd4082f74442a7544e1a8a4b9e8d">lex_define_macro</a> (lexer_t *lx, const char *macro, const char *body, int nargs=0, bool isfunc=false)</td></tr>
<tr class="memdesc:a8758bd4082f74442a7544e1a8a4b9e8d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Define a macro. <br /></td></tr>
<tr class="separator:a8758bd4082f74442a7544e1a8a4b9e8d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0cd9ec7908d50fdd4619cd43dd5819dc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0cd9ec7908d50fdd4619cd43dd5819dc"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a0cd9ec7908d50fdd4619cd43dd5819dc">lex_undefine_macro</a> (lexer_t *lx, const char *macro)</td></tr>
<tr class="memdesc:a0cd9ec7908d50fdd4619cd43dd5819dc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Undefine a macro. <br /></td></tr>
<tr class="separator:a0cd9ec7908d50fdd4619cd43dd5819dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac0f22dce54fbc1a27caaf77325d4f4da"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#ac0f22dce54fbc1a27caaf77325d4f4da">lex_set_options</a> (lexer_t *lx, int options)</td></tr>
<tr class="memdesc:ac0f22dce54fbc1a27caaf77325d4f4da"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set lexer options.  <a href="#ac0f22dce54fbc1a27caaf77325d4f4da">More...</a><br /></td></tr>
<tr class="separator:ac0f22dce54fbc1a27caaf77325d4f4da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc84d4c97875841ace0a6e78c55eb4cc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afc84d4c97875841ace0a6e78c55eb4cc"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#afc84d4c97875841ace0a6e78c55eb4cc">lex_get_token</a> (lexer_t *lx, <a class="el" href="structtoken__t.html">token_t</a> *t)</td></tr>
<tr class="memdesc:afc84d4c97875841ace0a6e78c55eb4cc"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get next token. <br /></td></tr>
<tr class="separator:afc84d4c97875841ace0a6e78c55eb4cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9f6277f5d349f69305a7e9e9304e0012"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a9f6277f5d349f69305a7e9e9304e0012">lex_enum_macros</a> (const lexer_t *lx, int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> cb(const char *name, const char *body, int nargs, bool isfunc, void *ud), void *ud=NULL)</td></tr>
<tr class="memdesc:a9f6277f5d349f69305a7e9e9304e0012"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enumerate all macros.  <a href="#a9f6277f5d349f69305a7e9e9304e0012">More...</a><br /></td></tr>
<tr class="separator:a9f6277f5d349f69305a7e9e9304e0012"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9d4c383832cc7d60476a8472c6838c01"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a9d4c383832cc7d60476a8472c6838c01"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> const char *<a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a9d4c383832cc7d60476a8472c6838c01">lex_print_token</a> (<a class="el" href="pro_8h.html#a386c10c6aa4340f1d63df85f40454fce">qstring</a> *buf, const <a class="el" href="structtoken__t.html">token_t</a> *t)</td></tr>
<tr class="memdesc:a9d4c383832cc7d60476a8472c6838c01"><td class="mdescLeft">&#160;</td><td class="mdescRight">Debug: get text representation of token. <br /></td></tr>
<tr class="separator:a9d4c383832cc7d60476a8472c6838c01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">String oriented functions</div></td></tr>
<tr class="memitem:a7e8fa8491fe016e56d7a3f24cb1f27f1"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a7e8fa8491fe016e56d7a3f24cb1f27f1">lex_init_string</a> (lexer_t *lx, const char *line, macro_t **macros=NULL)</td></tr>
<tr class="memdesc:a7e8fa8491fe016e56d7a3f24cb1f27f1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Set the input line and the macro table.  <a href="#a7e8fa8491fe016e56d7a3f24cb1f27f1">More...</a><br /></td></tr>
<tr class="separator:a7e8fa8491fe016e56d7a3f24cb1f27f1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">File oriented functions</div></td></tr>
<tr class="memitem:a71f853f002a3ad6ba31da876cd6d647f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a71f853f002a3ad6ba31da876cd6d647f">lex_init_file</a> (lexer_t *lx, const char *file)</td></tr>
<tr class="memdesc:a71f853f002a3ad6ba31da876cd6d647f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Initialization: file may be NULL.  <a href="#a71f853f002a3ad6ba31da876cd6d647f">More...</a><br /></td></tr>
<tr class="separator:a71f853f002a3ad6ba31da876cd6d647f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5ff4d39a3861b29b63e12b210685e804"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> const char *<a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a5ff4d39a3861b29b63e12b210685e804">lex_get_file_line</a> (lexer_t *lx, <a class="el" href="pro_8h.html#a56f1a81c92849566ae864511088eb7e8">int32</a> *linenum, const char **lineptr, int level=0)</td></tr>
<tr class="memdesc:a5ff4d39a3861b29b63e12b210685e804"><td class="mdescLeft">&#160;</td><td class="mdescRight">Error handling.  <a href="#a5ff4d39a3861b29b63e12b210685e804">More...</a><br /></td></tr>
<tr class="separator:a5ff4d39a3861b29b63e12b210685e804"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6223a6c446524cde5c67d76f706b1a2b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6223a6c446524cde5c67d76f706b1a2b"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a6223a6c446524cde5c67d76f706b1a2b">lex_term_file</a> (lexer_t *lx, bool del_macros)</td></tr>
<tr class="memdesc:a6223a6c446524cde5c67d76f706b1a2b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Termination: also see <a class="el" href="lex_8hpp.html#a71f853f002a3ad6ba31da876cd6d647f" title="Initialization: file may be NULL. ">lex_init_file()</a> <br /></td></tr>
<tr class="separator:a6223a6c446524cde5c67d76f706b1a2b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="member-group"></a>
Token stack</h2></td></tr>
<tr class="memitem:ab32c8e62185bb40333dc7fa5e52c83f7"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab32c8e62185bb40333dc7fa5e52c83f7"></a>
typedef <a class="el" href="classqstack.html">qstack</a>&lt; <a class="el" href="structtoken__t.html">token_t</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#ab32c8e62185bb40333dc7fa5e52c83f7">tokenstack_t</a></td></tr>
<tr class="memdesc:ab32c8e62185bb40333dc7fa5e52c83f7"><td class="mdescLeft">&#160;</td><td class="mdescRight">see <a class="el" href="lex_8hpp.html#a9459eaccf53dc8b7cc50b1b2980705ee" title="Retrieve token from a stack or lexer. ">get_token()</a>, <a class="el" href="lex_8hpp.html#aabfb89b5f4ffc9140054ebbe3dd4075d" title="Push a token back onto the token stack. ">unget_token()</a> <br /></td></tr>
<tr class="separator:ab32c8e62185bb40333dc7fa5e52c83f7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9459eaccf53dc8b7cc50b1b2980705ee"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a9459eaccf53dc8b7cc50b1b2980705ee">get_token</a> (<a class="el" href="structtoken__t.html">token_t</a> *t, lexer_t *lx, <a class="el" href="lex_8hpp.html#ab32c8e62185bb40333dc7fa5e52c83f7">tokenstack_t</a> &amp;buf)</td></tr>
<tr class="memdesc:a9459eaccf53dc8b7cc50b1b2980705ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Retrieve token from a stack or lexer.  <a href="#a9459eaccf53dc8b7cc50b1b2980705ee">More...</a><br /></td></tr>
<tr class="separator:a9459eaccf53dc8b7cc50b1b2980705ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aabfb89b5f4ffc9140054ebbe3dd4075d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aabfb89b5f4ffc9140054ebbe3dd4075d"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#aabfb89b5f4ffc9140054ebbe3dd4075d">unget_token</a> (const <a class="el" href="structtoken__t.html">token_t</a> &amp;t, <a class="el" href="lex_8hpp.html#ab32c8e62185bb40333dc7fa5e52c83f7">tokenstack_t</a> &amp;buf)</td></tr>
<tr class="memdesc:aabfb89b5f4ffc9140054ebbe3dd4075d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push a token back onto the token stack. <br /></td></tr>
<tr class="separator:aabfb89b5f4ffc9140054ebbe3dd4075d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga068126be2f22c1e330948652d5ce5025"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga068126be2f22c1e330948652d5ce5025"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___l_x_o_p_t__.html#ga068126be2f22c1e330948652d5ce5025">LXOPT_PARSE_FLOATS</a>&#160;&#160;&#160;0x0001</td></tr>
<tr class="memdesc:ga068126be2f22c1e330948652d5ce5025"><td class="mdescLeft">&#160;</td><td class="mdescRight">enable floating point constants <br /></td></tr>
<tr class="separator:ga068126be2f22c1e330948652d5ce5025"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga37c2344a1de5baa94ff11c504a0563e8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga37c2344a1de5baa94ff11c504a0563e8"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___l_x_o_p_t__.html#ga37c2344a1de5baa94ff11c504a0563e8">LXOPT_REQ_SEPARATOR</a>&#160;&#160;&#160;0x0002</td></tr>
<tr class="memdesc:ga37c2344a1de5baa94ff11c504a0563e8"><td class="mdescLeft">&#160;</td><td class="mdescRight">require a separator between a number and an ident or a character/string constant or dot <br /></td></tr>
<tr class="separator:ga37c2344a1de5baa94ff11c504a0563e8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga7c1718358d99f1ee5230241ce4915f31"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga7c1718358d99f1ee5230241ce4915f31"></a>
#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___l_x_o_p_t__.html#ga7c1718358d99f1ee5230241ce4915f31">LXOPT_NOCASE_FILES</a>&#160;&#160;&#160;0x0004</td></tr>
<tr class="memdesc:ga7c1718358d99f1ee5230241ce4915f31"><td class="mdescLeft">&#160;</td><td class="mdescRight">case-insensitive file search <br /></td></tr>
<tr class="separator:ga7c1718358d99f1ee5230241ce4915f31"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaab71b38807f79493f7354238690db906"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___l_x_o_p_t__.html#gaab71b38807f79493f7354238690db906">LXOPT_C99_CONSTANTS</a>&#160;&#160;&#160;0x0008</td></tr>
<tr class="memdesc:gaab71b38807f79493f7354238690db906"><td class="mdescLeft">&#160;</td><td class="mdescRight">the size and sign of constants depend on the value itself and the 'U', 'L', and 'LL'  <a href="group___l_x_o_p_t__.html#gaab71b38807f79493f7354238690db906">More...</a><br /></td></tr>
<tr class="separator:gaab71b38807f79493f7354238690db906"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="typedef-members"></a>
Typedefs</h2></td></tr>
<tr class="memitem:a89b503fa5c6813a8c60627d2335d49c3"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a89b503fa5c6813a8c60627d2335d49c3"></a>
typedef <a class="el" href="pro_8h.html#ab95f123a6c9bcfee6a343170ef8c5f69">ushort</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a></td></tr>
<tr class="memdesc:a89b503fa5c6813a8c60627d2335d49c3"><td class="mdescLeft">&#160;</td><td class="mdescRight">see <a class="el" href="group__lx__.html">Parser token types</a> <br /></td></tr>
<tr class="separator:a89b503fa5c6813a8c60627d2335d49c3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a723b271f3ba645fbf7511d952bf7df2f"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a723b271f3ba645fbf7511d952bf7df2f">lx_resolver_t</a>(lexer_t *lx, void *ud, <a class="el" href="structtoken__t.html">token_t</a> *curtok, <a class="el" href="pro_8h.html#a430639fcfd4601cd6cb310ae71481fe1">sval_t</a> *res)</td></tr>
<tr class="memdesc:a723b271f3ba645fbf7511d952bf7df2f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preprocessor callback for unknown tokens.  <a href="#a723b271f3ba645fbf7511d952bf7df2f">More...</a><br /></td></tr>
<tr class="separator:a723b271f3ba645fbf7511d952bf7df2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adc7813835f2b1b8c8b89bd4236d19590"><td class="memItemLeft" align="right" valign="top">typedef <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#adc7813835f2b1b8c8b89bd4236d19590">lx_parse_cast_t</a>(lexer_t *lx, <a class="el" href="structcast__t.html">cast_t</a> *cast, <a class="el" href="structtoken__t.html">token_t</a> *ct)</td></tr>
<tr class="memdesc:adc7813835f2b1b8c8b89bd4236d19590"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preprocessor callbacks for casts.  <a href="#adc7813835f2b1b8c8b89bd4236d19590">More...</a><br /></td></tr>
<tr class="separator:adc7813835f2b1b8c8b89bd4236d19590"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af772cf7e5990fcea01360ae8b76728a5"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#af772cf7e5990fcea01360ae8b76728a5">lx_preprocessor_cb</a>(void *ud, const char *fname, int nl, const char *line)</td></tr>
<tr class="memdesc:af772cf7e5990fcea01360ae8b76728a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Preprocessor callback.  <a href="#af772cf7e5990fcea01360ae8b76728a5">More...</a><br /></td></tr>
<tr class="separator:af772cf7e5990fcea01360ae8b76728a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfe84909f3c4a187c0bf9d22f9ef61bf"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#abfe84909f3c4a187c0bf9d22f9ef61bf">lx_pragma_cb</a>(void *ud, const char *line)</td></tr>
<tr class="memdesc:abfe84909f3c4a187c0bf9d22f9ef61bf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for #pragma directives.  <a href="#abfe84909f3c4a187c0bf9d22f9ef61bf">More...</a><br /></td></tr>
<tr class="separator:abfe84909f3c4a187c0bf9d22f9ef61bf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8d2e040adda107654a6c5e3544c71c78"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a8d2e040adda107654a6c5e3544c71c78">lx_warning_cb</a>(void *ud, const char *line)</td></tr>
<tr class="memdesc:a8d2e040adda107654a6c5e3544c71c78"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for #warning directives.  <a href="#a8d2e040adda107654a6c5e3544c71c78">More...</a><br /></td></tr>
<tr class="separator:a8d2e040adda107654a6c5e3544c71c78"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8c223f24bf44d71392d34e99d906f6c1"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a8c223f24bf44d71392d34e99d906f6c1">lx_macro_cb</a>(void *ud, const char *name, const char *body, int nargs, bool isfunc, bool is_new_macro)</td></tr>
<tr class="memdesc:a8c223f24bf44d71392d34e99d906f6c1"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for #define directives.  <a href="#a8c223f24bf44d71392d34e99d906f6c1">More...</a><br /></td></tr>
<tr class="separator:a8c223f24bf44d71392d34e99d906f6c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a21010c94d3daa6580be02bba23d7018b"><td class="memItemLeft" align="right" valign="top">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="lex_8hpp.html#a21010c94d3daa6580be02bba23d7018b">lx_undef_cb</a>(void *ud, const char *name)</td></tr>
<tr class="memdesc:a21010c94d3daa6580be02bba23d7018b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Callback for #undef directives.  <a href="#a21010c94d3daa6580be02bba23d7018b">More...</a><br /></td></tr>
<tr class="separator:a21010c94d3daa6580be02bba23d7018b"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:ga28e981fa781d4cd520d43011654d5fa8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga28e981fa781d4cd520d43011654d5fa8"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga28e981fa781d4cd520d43011654d5fa8">lx_end</a> = 1</td></tr>
<tr class="memdesc:ga28e981fa781d4cd520d43011654d5fa8"><td class="mdescLeft">&#160;</td><td class="mdescRight">no more tokens <br /></td></tr>
<tr class="separator:ga28e981fa781d4cd520d43011654d5fa8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga10bed2576922f6971c142b806c011087"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga10bed2576922f6971c142b806c011087"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga10bed2576922f6971c142b806c011087">lx_ident</a> = 2</td></tr>
<tr class="memdesc:ga10bed2576922f6971c142b806c011087"><td class="mdescLeft">&#160;</td><td class="mdescRight">ident <br /></td></tr>
<tr class="separator:ga10bed2576922f6971c142b806c011087"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8e4334ffe5ea9fbf952bc528bc3558c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8e4334ffe5ea9fbf952bc528bc3558c8"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga8e4334ffe5ea9fbf952bc528bc3558c8">lx_number</a> = 3</td></tr>
<tr class="memdesc:ga8e4334ffe5ea9fbf952bc528bc3558c8"><td class="mdescLeft">&#160;</td><td class="mdescRight">long constant <br /></td></tr>
<tr class="separator:ga8e4334ffe5ea9fbf952bc528bc3558c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8ffa2d1bcaf7665a287358ff5759bc24"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga8ffa2d1bcaf7665a287358ff5759bc24"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga8ffa2d1bcaf7665a287358ff5759bc24">lx_string</a> = 4</td></tr>
<tr class="memdesc:ga8ffa2d1bcaf7665a287358ff5759bc24"><td class="mdescLeft">&#160;</td><td class="mdescRight">string constant (token_t.chr != 0 =&gt; unicode string) <br /></td></tr>
<tr class="separator:ga8ffa2d1bcaf7665a287358ff5759bc24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabee7734ff852fc1014bc0a801418e095"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gabee7734ff852fc1014bc0a801418e095"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#gabee7734ff852fc1014bc0a801418e095">lx_char</a> = 5</td></tr>
<tr class="memdesc:gabee7734ff852fc1014bc0a801418e095"><td class="mdescLeft">&#160;</td><td class="mdescRight">char constant <br /></td></tr>
<tr class="separator:gabee7734ff852fc1014bc0a801418e095"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga95dca21f66831320ddff1c8796a199fe"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga95dca21f66831320ddff1c8796a199fe"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga95dca21f66831320ddff1c8796a199fe">lx_typename</a> = 6</td></tr>
<tr class="memdesc:ga95dca21f66831320ddff1c8796a199fe"><td class="mdescLeft">&#160;</td><td class="mdescRight">user-defined type <br /></td></tr>
<tr class="separator:ga95dca21f66831320ddff1c8796a199fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac50abc1f8d4c69467c62cc564d6daf42"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gac50abc1f8d4c69467c62cc564d6daf42"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#gac50abc1f8d4c69467c62cc564d6daf42">lx_float</a> = 7</td></tr>
<tr class="memdesc:gac50abc1f8d4c69467c62cc564d6daf42"><td class="mdescLeft">&#160;</td><td class="mdescRight">IEEE floating point constant. <br /></td></tr>
<tr class="separator:gac50abc1f8d4c69467c62cc564d6daf42"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga677b2da507c60eddd4290313b73883a0"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga677b2da507c60eddd4290313b73883a0"></a>
const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga677b2da507c60eddd4290313b73883a0">lx_int64</a> = 8</td></tr>
<tr class="memdesc:ga677b2da507c60eddd4290313b73883a0"><td class="mdescLeft">&#160;</td><td class="mdescRight">int64 constant <br /></td></tr>
<tr class="separator:ga677b2da507c60eddd4290313b73883a0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga9992731b0d95ed4a9c9adf82ac9db347"><td class="memItemLeft" align="right" valign="top">const <a class="el" href="lex_8hpp.html#a89b503fa5c6813a8c60627d2335d49c3">lxtype</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__lx__.html#ga9992731b0d95ed4a9c9adf82ac9db347">lx_key</a> = 128</td></tr>
<tr class="memdesc:ga9992731b0d95ed4a9c9adf82ac9db347"><td class="mdescLeft">&#160;</td><td class="mdescRight">keywords start.  <a href="group__lx__.html#ga9992731b0d95ed4a9c9adf82ac9db347">More...</a><br /></td></tr>
<tr class="separator:ga9992731b0d95ed4a9c9adf82ac9db347"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Typedef Documentation</h2>
<a class="anchor" id="a723b271f3ba645fbf7511d952bf7df2f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> lx_resolver_t(lexer_t *lx, void *ud, <a class="el" href="structtoken__t.html">token_t</a> *curtok, <a class="el" href="pro_8h.html#a430639fcfd4601cd6cb310ae71481fe1">sval_t</a> *res)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Preprocessor callback for unknown tokens. </p>
<p>Will be called when preprocessor calculates the value of #if expression. </p>

</div>
</div>
<a class="anchor" id="adc7813835f2b1b8c8b89bd4236d19590"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> lx_parse_cast_t(lexer_t *lx, <a class="el" href="structcast__t.html">cast_t</a> *cast, <a class="el" href="structtoken__t.html">token_t</a> *ct)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Preprocessor callbacks for casts. </p>
<p>Will be called when preprocessor calculates the value of #if expression. </p>

</div>
</div>
<a class="anchor" id="af772cf7e5990fcea01360ae8b76728a5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> lx_preprocessor_cb(void *ud, const char *fname, int nl, const char *line)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Preprocessor callback. </p>
<p>It will be called for each input line. </p><dl class="section return"><dt>Returns</dt><dd>an error code (0-ok) </dd></dl>

</div>
</div>
<a class="anchor" id="abfe84909f3c4a187c0bf9d22f9ef61bf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> lx_pragma_cb(void *ud, const char *line)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback for #pragma directives. </p>
<dl class="section return"><dt>Returns</dt><dd>an error code (0-ok) </dd></dl>

</div>
</div>
<a class="anchor" id="a8d2e040adda107654a6c5e3544c71c78"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> lx_warning_cb(void *ud, const char *line)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback for #warning directives. </p>
<dl class="section return"><dt>Returns</dt><dd>an error code (0-ok) </dd></dl>

</div>
</div>
<a class="anchor" id="a8c223f24bf44d71392d34e99d906f6c1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> lx_macro_cb(void *ud, const char *name, const char *body, int nargs, bool isfunc, bool is_new_macro)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback for #define directives. </p>
<dl class="section return"><dt>Returns</dt><dd>an error code (0-ok) </dd></dl>

</div>
</div>
<a class="anchor" id="a21010c94d3daa6580be02bba23d7018b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">typedef int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> lx_undef_cb(void *ud, const char *name)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Callback for #undef directives. </p>
<dl class="section return"><dt>Returns</dt><dd>an error code (0-ok) </dd></dl>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a88745b2b81432a7ff622f0c19f3d114b"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> lexer_t* <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> create_lexer </td>
          <td>(</td>
          <td class="paramtype">const char *const *&#160;</td>
          <td class="paramname"><em>keys</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>size</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ud</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Create new lexical analyzer and set its keyword table. </p>
<p>If keys==NULL, then set the default C keyword table </p>

</div>
</div>
<a class="anchor" id="ac0f22dce54fbc1a27caaf77325d4f4da"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lex_set_options </td>
          <td>(</td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>options</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set lexer options. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">options</td><td><a class="el" href="group___l_x_o_p_t__.html">Lexer options</a> </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the old options </dd></dl>

</div>
</div>
<a class="anchor" id="a9f6277f5d349f69305a7e9e9304e0012"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> int <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lex_enum_macros </td>
          <td>(</td>
          <td class="paramtype">const lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int <a class="el" href="pro_8h.html#a6505e7ff3b129d8b17258304886fd133">idaapi</a> &#160;</td>
          <td class="paramname"><em>cb</em>const char *name, const char *body, int nargs, bool isfunc, void *ud, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"><em>ud</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enumerate all macros. </p>
<p>Do so until 'cb' returns non-zero. </p>

</div>
</div>
<a class="anchor" id="a7e8fa8491fe016e56d7a3f24cb1f27f1"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lex_init_string </td>
          <td>(</td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>line</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">macro_t **&#160;</td>
          <td class="paramname"><em>macros</em> = <code>NULL</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Set the input line and the macro table. </p>
<p>if macros==NULL, the macro table will not be changed. </p>

</div>
</div>
<a class="anchor" id="a71f853f002a3ad6ba31da876cd6d647f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> <a class="el" href="pro_8h.html#a9ad6b2dc3cbff040775e79656fe8e1a3">error_t</a> <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lex_init_file </td>
          <td>(</td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>file</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Initialization: file may be NULL. </p>
<p>Also see <a class="el" href="lex_8hpp.html#a6223a6c446524cde5c67d76f706b1a2b" title="Termination: also see lex_init_file() ">lex_term_file()</a>. </p>

</div>
</div>
<a class="anchor" id="a5ff4d39a3861b29b63e12b210685e804"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> const char* <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lex_get_file_line </td>
          <td>(</td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a56f1a81c92849566ae864511088eb7e8">int32</a> *&#160;</td>
          <td class="paramname"><em>linenum</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char **&#160;</td>
          <td class="paramname"><em>lineptr</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>level</em> = <code>0</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Error handling. </p>
<p>if level &gt; 0, then return information about the enclosing file which included the current one. </p>

</div>
</div>
<a class="anchor" id="a9459eaccf53dc8b7cc50b1b2980705ee"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool get_token </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structtoken__t.html">token_t</a> *&#160;</td>
          <td class="paramname"><em>t</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">lexer_t *&#160;</td>
          <td class="paramname"><em>lx</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="lex_8hpp.html#ab32c8e62185bb40333dc7fa5e52c83f7">tokenstack_t</a> &amp;&#160;</td>
          <td class="paramname"><em>buf</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Retrieve token from a stack or lexer. </p>
<p>If buf is not empty then get the token on top of the stack. If buf is empty then gen the next token from the lexer. </p><dl class="section return"><dt>Returns</dt><dd>success </dd></dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
